home *** CD-ROM | disk | FTP | other *** search
Modula Implementation | 1995-02-24 | 783 b | 28 lines | [TEXT/3PRM] |
- implementation module OS_utilities;
-
- import mac_types;
-
- Secs2Date :: !Int !Toolbox -> (!Int,!Int,!Int,!Int,!Toolbox);
- Secs2Date secs t = code (secs=R14D1,t=U)(year=W,month=W,day=W,dayOfWeek=I6W,z=Z){
- instruction 0x2001 || move.l d1,d0
- instruction 0x204F || move.l sp,a0
- instruction 0xA9C6
- };
-
- Secs2Time :: !Int !Toolbox -> (!Int,!Int,!Int,!Toolbox);
- Secs2Time secs t = code (secs=R14D1,t=U)(hour=I6W,minute=W,second=W,z=I2Z){
- instruction 0x2001 || move.l d1,d0
- instruction 0x204F || move.l sp,a0
- instruction 0xA9C6
- };
-
- SysBeep :: !Int !Toolbox -> Toolbox;
- SysBeep duration t = code (duration=W,t=U)(z=Z){
- instruction 0xA9C8
- };
-
- GetCursor :: !Int !Toolbox -> (!Handle,!Toolbox);
- GetCursor cursorID t = code (cursorID=R4W,t=U)(crsr_handle=L,z=Z){
- instruction 0xA9B9
- };
-